package com.medical_backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical_backend.entity.Menu;
import com.medical_backend.mapper.MenuMapper;
import com.medical_backend.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public void removeByUserid(String userid) {
        menuMapper.deleteByUserid(userid);
    }

    @Override
    public List<String> selectMenusByUserid(String userid) {
        return menuMapper.selectMenusByUserid(userid);
    }
}
